package java8_26.chongwu;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest7 {
    public static void main(String[] args) {
        Object o=new Dog("大黄","公",88,88);
        //Object o=new Penguin("大黄","公",88,88);
        //o.print();
        //向下强转
        //instanceof
        Dog dog=(Dog)o;
        dog.print();
        dog.eat();
        //double d=4.666;
        //int i=(int)d;
    }
}
